package cn.wolfcode.luowowo.article.mapper;

import cn.wolfcode.luowowo.article.domain.Destination;
import cn.wolfcode.luowowo.common.query.QueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DestinationMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Destination record);

    Destination selectByPrimaryKey(Long id);

    List<Destination> selectAll();

    int updateByPrimaryKey(Destination record);

    List<Destination> selectAlldestByDeep(int deep);

    List<Destination> selectDestByRefids(Long[] refIds);

    List<Destination> queryForList(QueryObject queryObject);

    void changeHotState(@Param("hot") Boolean hot, @Param("id") Long id);

    void updateInfoById(Destination destination);

    List<Destination> selectDestByRegionId(Long regionId);

}